package com.atguigu;

import com.atguigu.anno.EnableGlobalExceptionHandler;
import com.atguigu.spzx.common.annotations.EnableAspect;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author dyl
 * @version 1.0
 * @description:
 * @date 2024/12/24 19:27
 */
@SpringBootApplication
@MapperScan("com.atguigu.spzx.manager.mapper")
@MapperScan("com.atguigu.spzx.user.mapper")
@EnableTransactionManagement
// 开启全局异常处理
@EnableGlobalExceptionHandler
// 开启定时器
@EnableScheduling
// 这是自定义注解，指定扫描LogAspect注解，也可以在LogAspect中指定@Component
@EnableAspect
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
